package com.wlz.creational.factorymethod.buttons;

/**
 * @author： wlz
 * @Date 2020/10/14 11:07
 * @description： TODO 具体产品
 * @version: 1.0
 */
public class HtmlButton implements Button {
    @Override
    public void render() {
        System.out.println("<button>Test Button</button>");
        onClick();
    }

    @Override
    public void onClick() {
        System.out.println("Click! Button says - 'Hello World!'");
    }
}
